Err.CallStack

Note: This statement is named Error Call Stack in the Add Statement dialog box.

Returns the stack of function, subroutine, script, and Try calls up to the script line where the last error occurred. Use to generate output that is helpful when debugging scripts.

Syntax

CallStack()

Supported objects

Err

Return value

Value Description
Value Call stack for the last error that occurred.

Example

'Captures errors from regression test suite

Try

'Runs regression test

Script.CallScript("RegressionSuite")

Catch

'Prints error information for debugging purposes

PrintLn ("Script with error: " + Err.ScriptName())

PrintLn ("Error #: " + Err.Number())

PrintLn ("Error source: " + Err.Source())

PrintLn ("Error description: " + Err.Description())

PrintLn ("Script line number: " + Err.LineNumber())

PrintLn ("Script line text: " + Err.LineText())

PrintLn ("Call stack: " + Err.CallStack())

End Try